package com.woniuxy02;

import java.util.Arrays;

/**
 * @author 作者
 * @create 2025-05-27 14:41
 */
public class Test03 {
    public static void main(String[] args) {
        int[] a={5,4,3,2,1};
        System.out.println("排序前");
        System.out.println(Arrays.toString(a));
        Arrays.sort(a);
        System.out.println("排序后");
        System.out.println(Arrays.toString(a));
//        System.out.println("排序前");
//        for(int i: a){
//            System.out.print(i+"\t");
//        }
//        System.out.println();
//        String result = Arrays.toString(a);
//        System.out.println(result);
//        System.out.println(Arrays.toString(a));
    }
}
